home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.programmer,comp.lang.c
- Path: howland.reston.ans.net!torn!nott!emr1!news
- From: Stephane Charette <charrick@netrover.com>
- Subject: Applying file masks in UNIX using C/C++
- X-Nntp-Posting-Host: pc20.ccg.emr.ca
- Content-Type: text/plain; charset=us-ascii
- Message-ID: <31618AFE.5476@netrover.com>
- Sender: news@emr1.emr.ca
- Content-Transfer-Encoding: 7bit
- Organization: Natural Resources Canada, Ottawa
- Mime-Version: 1.0
- Date: Tue, 2 Apr 1996 20:15:58 GMT
- X-Mailer: Mozilla 2.01 (Win16; I)
-
- This is a long shot...but...does anyone know of the existence
- of public domain C/C++ code which will apply a file mask to
- an existing filename and return a TRUE or FALSE response?
-
- For example: if I have a mask of "a??01.text.*" and I have
- the files "abc01.text.old", "az01.text.new" and "az01.text",
- then it would return positive on the first two, but negative
- on the last. Does this make sense?
-
- What I hope, is that someone has already done all of this and
- put it up there on an FTP site. Thing is, I can't find it...
- WWW searches have turned up nothing so far either. (The fact
- that I have no idea what this would be called doesn't help.)
-
- Thanks for your help,
-
- Stephane Charette
-